<?php

class MessagePeer extends BaseMessagePeer
{

   public static function doCountMessage($id){
       $c = new Criteria();
       $c->add(MessagePeer::ID_DISCUSSION,$id);
       return parent::doCount($c);

   }
}
